package com.naiterui.ehp.bs.pharmacist.feign;


import com.naiterui.ehp.bp.bo.medication.MedicationDefaultUsageBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;
import java.util.Set;

/**
 * @author gaoliangliang
 * @date 2019-06-24 14:57
 * @since 1.0.0
 */
@FeignClient(name = "b2cFeignClient", url = "${ehp.domain.b2c}", configuration = FeignConfiguration.class)
public interface IB2cFeignClient {

    /**
     * 获取药品用法用量
     * @param skuIds
     * @return
     */
    @PostMapping("inner/medicine/usage/find")
    Map<Long, MedicationDefaultUsageBO> getMedicationDefaultUsage(@RequestBody Set<Long> skuIds);
}
